<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Home</title>

<link href="views/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="views/css/bootstrap-theme.css" rel="stylesheet"
	type="text/css">
<link href="views/css/style.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="views/js/jquery.min.js"></script>
<script type="text/javascript" src="views/js/bootstrap.min.js"></script>
</head>
<body>


	<!-- HEADER -->
	<div id="header">
		<div class="page-full-width cf">
			<div id="login-intro" class="fl">
				Welcome
				<sec:authentication property="principal.username" />
				<a href="<c:url value="/j_spring_security_logout"/>">LOGOUT</a>
			</div>
		</div>
	</div>

	<!-- CONTENT -->
	<div id="content">
		
		<a href="<c:url value="/findRoute"/>">FindRoute</a>
		
		<div class="parsedList">
			<table width="100%" class="table table-striped table-bordered ">
				<tr>
					<td><b>Date</b></td>
					<td><b>ST</b></td>
					<td><b>City</b></td>
					<td><b>PPG</b></td>
					<td><b>Name</b></td>
					<td><b>Address</b></td>
					<td><b>Directions</b></td>
				</tr>
				<c:forEach items="${parsedList}" var="gasolineStation">
					<tr>
						<td><c:out value="${gasolineStation.infoDate }"></c:out></td>
						<td><c:out value="${gasolineStation.st }"></c:out></td>
						<td><c:out value="${gasolineStation.city }"></c:out></td>
						<td><c:out value="${gasolineStation.PPG }"></c:out></td>
						<td><c:out value="${gasolineStation.name }"></c:out></td>
						<td><c:out value="${gasolineStation.address }"></c:out></td>
						<td><c:out value="${gasolineStation.directions }"></c:out></td>
					</tr>
				</c:forEach>
			</table>
		</div>
	</div>

	<!-- FOOTER -->
	<div id="footer">
		<p>
			&copy; Copyright 2014 <a href="#">TEST</a>. All rights reserved.
		</p>
		<p>
			Support by <a href="http://www.adipurdila.com">Developed company</a>
		</p>

	</div>
</body>
</html>